<template>
  <div class="body">
    <!-- 我的老师 > 我的学习群 -->
    <!-- <div class="header">
      <div>
        <img @click="returnGo" src="../../assets/homeimg/滑动左.png" />
        <span>我的老师</span>
      </div>
    </div> -->
    <div class="min">
      <div class="img">
        <img src="../../assets/homeimg/黄色心.png" />
      </div>
      <div class="purchase">
        <p class="win">你已成功付费</p>
        <p class="apply">还差最后一步完成报名</p>
      </div>
      <div class="back"></div>
      <div class="addWeChat">
        点击添加老师微信 随时随地沟通
      </div>
      <div class="addteacher" @click="addTeacher(id)">
        立即添加老师
      </div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
		id:''
	};
  },
  components: {
    // [Image.name]: Image
  },
  created() {
  	this.id = this.$route.query.id;
	console.log(this.id)
  },
  methods: {
    returnGo() {
      this.$router.go(-1);
    },
    addTeacher(id){
      this.$router.push({name: "addTeacher", query: { id } });
    }
  }
};
</script>
<style lang="scss" scoped="scoped">
.body {
  color: #333333;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: url("../../assets/homeimg/beijing.png");
  background-size: 100% 100%;
}
.header {
  // font-weight: bold;
  width: 100%;
  text-align: center;
  height: 2.75rem;
  line-height: 2.75rem;
  padding-top: 1.25rem;
  position: relative;
  border-bottom: 1px solid #dcdcdc;
  color: #333333;
  font-size: 1.25rem;
  img {
    width: 0.625rem;
    height: 1.125rem;
    position: absolute;
    left: 1rem;
    bottom: 0.75rem;
  }
}
// 在scss文件中
	@supports(bottom:constant(safe-area-inset-top)) {

		// 如果存在底部安全区域
		.header {
			padding-top: constant(safe-area-inset-top);

		}

	}

	@supports(bottom:env(safe-area-inset-top)) {

		// 如果存在底部安全区域
		.header {
			padding-top: env(safe-area-inset-top);

		}

	}
.min {
  width: 19.6875rem;
  height: 27.1875rem;
  background: #fff2d7;
  margin: 3.125rem auto;
  border-radius: 0.625rem;

  .img {
    width: 4.5rem;
    height: 6.25rem;
    margin: 0 auto;
    position: relative;
    img {
      width: 4.5rem;
      height: 6.25rem;
      position: absolute;
      top: -0.9375rem;
    }
  }
  .purchase {
    text-align: center;
    margin-top: 1.25rem;
    p {
      height: 3rem;
      line-height: 3rem;
    }
    .win {
      color: #ff6c00;
      font-size: 1.875rem;
      font-weight: bold;
      font-family: AliHYAiHei;
    }
    .apply {
      color: #ff6c00;
      font-size: 1.5rem;
    }
  }
  .back {
    width: 2.75rem;
    height: 0.25rem;
    background: #ff6c00;
    margin: 0 auto;
    margin-top: 1.25rem;
  }
  .addWeChat {
    width: 12rem;
    text-align: center;
    margin: 0 auto;
    color: #333333;
    font-size: 1.5rem;
    margin-top: 1.25rem;
  }
  .addteacher {
    width: 15rem;
    height: 2.75rem;
    background: #ffaf05;
    border-radius: 1.375rem;
    margin: 0 auto;
    text-align: center;
    line-height: 2.75rem;
    color: #8b4803;
    margin-top: 1.5rem;
  }
}
</style>
